Skip to content

Conversation

@dvdksn
Copy link
Contributor

@dvdksn dvdksn commented Nov 17, 2025

Description

Conslidates the documentation on network drivers, which for some drivers is
currently split up into two separate pages:

  • The main driver documentation page
  • A tutorials page showing examples of how you can use the driver

This PR removes the separate tutorials page and incorporates the relevant
content into the main page.

@dvdksn dvdksn requested a review from aevesdocker as a code owner November 17, 2025 12:16
@netlify
Copy link

netlify bot commented Nov 17, 2025

Deploy Preview for docsdocker ready!

Name Link
🔨 Latest commit 5c8215b
🔍 Latest deploy log https://app.netlify.com/projects/docsdocker/deploys/691b12292727ab0008473fb4
😎 Deploy Preview https://deploy-preview-23731--docsdocker.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@github-actions github-actions bot added area/engine Issue affects Docker engine/daemon area/compose Relates to docker-compose.yml spec or docker-compose binary area/networking Relates to anything around networking labels Nov 17, 2025
@dvdksn dvdksn requested review from akerouanton and robmry November 17, 2025 12:17
Copy link
Contributor

@robmry robmry left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM - comments can be suggestions for follow-up.

Comment on lines +475 to +480
8. Clean up:

```console
$ docker container stop alpine1 alpine2
$ docker container rm alpine1 alpine2
```
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could add a "docker ps -a" between the stop and rm, to note that stopped containers lose their IP address etc?

Comment on lines +423 to +426
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN qlen 1
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could update this to include the ::1 on lo (which will now be there unless IPv6 is disabled on the host, or by sysctl-ing the container).

@dvdksn dvdksn requested a review from a team November 20, 2025 16:44
Copy link
Contributor

@aevesdocker aevesdocker left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Picky style guide nits. Otherwise LGTM

## Usage example

This example shows how to start an nginx container that binds directly to port
80 on the Docker host. From a networking perspective, this provides the same
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
80 on the Docker host. From a networking perspective, this provides the same
`80` on the Docker host. From a networking perspective, this provides the same


## Usage example

This example shows how to start an nginx container that binds directly to port
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
This example shows how to start an nginx container that binds directly to port
This example shows how to start an Nginx container that binds directly to port


This example shows how to start an nginx container that binds directly to port
80 on the Docker host. From a networking perspective, this provides the same
level of isolation as if nginx were running directly on the host, but the
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
level of isolation as if nginx were running directly on the host, but the
level of isolation as if Nginx were running directly on the host, but the


### Prerequisites

- Port 80 must be available on the Docker host. To make nginx listen on a
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
- Port 80 must be available on the Docker host. To make nginx listen on a
- Port `80` must be available on the Docker host. To make Nginx listen on a

### Prerequisites

- Port 80 must be available on the Docker host. To make nginx listen on a
different port, see the [nginx image documentation](https://hub.docker.com/_/nginx/).
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
different port, see the [nginx image documentation](https://hub.docker.com/_/nginx/).
different port, see the [Nginx image documentation](https://hub.docker.com/_/nginx/).

nginx
```

The default `ingress` publish mode means you can browse to port 80 on any
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
The default `ingress` publish mode means you can browse to port 80 on any
The default `ingress` publish mode means you can browse to port `80` on any

$ docker network create -d overlay my-overlay
```

2. Start a service using the overlay network, publishing port 80 to port 8080:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
2. Start a service using the overlay network, publishing port 80 to port 8080:
2. Start a service using the overlay network, publishing port `80` to port `8080`:

You need two Docker hosts that can communicate with each other with the
following ports open between them:

- TCP port 2377
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
- TCP port 2377
- TCP port `2377`

following ports open between them:

- TCP port 2377
- TCP and UDP port 7946
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
- TCP and UDP port 7946
- TCP and UDP port `7946`


- TCP port 2377
- TCP and UDP port 7946
- UDP port 4789
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
- UDP port 4789
- UDP port `4789`

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/compose Relates to docker-compose.yml spec or docker-compose binary area/engine Issue affects Docker engine/daemon area/networking Relates to anything around networking status/review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants